import 'package:flutter/material.dart';

void main() {
  // 1.运行应用程序
  runApp(const MaterialApp(home: Main()));
}

class Main extends StatelessWidget {
  const Main({super.key});   

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(
          'column组件',
          style: TextStyle(color: Colors.white),
        ),
        backgroundColor: Colors.black,
      ),
      body: Center(
        child: Container(
          width: 300,
          height: 400,
          color:Colors.amber,
           // 本地资源图标，记得在 pubspec.yaml 中配置。
          //  Column可以放多个子元素 children 
          child: Column(
            // 主轴
            mainAxisAlignment: MainAxisAlignment.center,
            // 交叉轴
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
            Image.network('https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
            width: 200,
            ),
            const Text('美妆效果嘎嘎不卡粉末面刷'),
            const Text('¥99.90'),
          ],
          ),
        ),
      ),
    );
  }
}
